API Documentation
Public Member Functions | Public Attributes | List of all members
nkGraphics::DecodedMaterialData Struct Referencefinal

Holds data about a decoded material. More...

Public Member Functions

 DecodedMaterialData ()
 
 DecodedMaterialData (const DecodedMaterialData &other)
 
 DecodedMaterialData (DecodedMaterialData &&other)
 
 ~DecodedMaterialData ()
 
DecodedMaterialDataoperator= (const DecodedMaterialData &other)
 
DecodedMaterialDataoperator= (DecodedMaterialData &&other)
 

Public Attributes

nkMaths::Vector _ambientColor
 The ambient color, if any.
 
int _ambientTextureIndex = -1
 The ambient texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 
nkMaths::Vector _diffuseColor
 The diffuse color, if any.
 
int _diffuseTextureIndex = -1
 The diffuse texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 
nkMaths::Vector _specularColor
 The specular color, if any.
 
int _specularTextureIndex = -1
 The specular texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 

Detailed Description

Holds data about a decoded material.

Constructor & Destructor Documentation

◆ DecodedMaterialData() [1/3]

nkGraphics::DecodedMaterialData::DecodedMaterialData ( )

Default constructor.

◆ DecodedMaterialData() [2/3]

nkGraphics::DecodedMaterialData::DecodedMaterialData ( const DecodedMaterialData other)

Copy constructor.

Parameters
otherThe data to copy from.

◆ DecodedMaterialData() [3/3]

nkGraphics::DecodedMaterialData::DecodedMaterialData ( DecodedMaterialData &&  other)

Move constructor.

Parameters
otherThe data to move over.

◆ ~DecodedMaterialData()

nkGraphics::DecodedMaterialData::~DecodedMaterialData ( )

Destructor.

Member Function Documentation

◆ operator=() [1/2]

DecodedMaterialData& nkGraphics::DecodedMaterialData::operator= ( const DecodedMaterialData other)

Assignment copy operator.

Parameters
otherThe data to copy from.

◆ operator=() [2/2]

DecodedMaterialData& nkGraphics::DecodedMaterialData::operator= ( DecodedMaterialData &&  other)

Assignment move operator.

Parameters
otherThe data to move over.

The documentation for this struct was generated from the following file: